package com.example.gulimallsearch.controller;

import com.example.gulimallsearch.service.MallSearchService;
import com.example.gulimallsearch.vo.SearchParam;
import com.example.gulimallsearch.vo.SearchResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.jws.WebParam;

@Controller
public class SearchController {
    @Autowired
    MallSearchService mallSearchService;
    @GetMapping("/list.html")
    public String listPage(Model model){
        //根据传递来的参数去es中检索商品
        //SearchResult result = mallSearchService.search(searchParam);
        //model.addAttribute("result",result);
        return "list";
    }
}
